package com.shanzhe.eshop.common.jdk;

import java.util.Iterator;
import java.util.concurrent.LinkedBlockingQueue;

/**
 * @Author yinwei
 * @create 2021/12/18
 * @Version 1.0
 */
public class LinkedBlockingQueueDemo {

    public static void main(String[] args) throws InterruptedException {
        LinkedBlockingQueue<String> linkedBlockingQueue = new LinkedBlockingQueue<String>();
        linkedBlockingQueue.put("给我阻塞");
        linkedBlockingQueue.take();
        linkedBlockingQueue.size();
        linkedBlockingQueue.iterator();
    }
}
